# 字典操作练习——升职加薪

employer_dict = {
    "wanglihong":{
        "部门":"科技部",
        "工资":3000,
        "级别":1
    },
    "zhoujielun":{
        "部门":"市场部",
        "工资":5000,
        "级别":2
    },
    "linjunjie":{
        "部门":"市场部",
        "工资":7000,
        "级别":3
    },
    "zhangxueyou":{
        "部门":"科技部",
        "工资":4000,
        "级别":1
    },
    "liudehua":{
        "部门":"市场部",
        "工资":6000,
        "级别":2
    },
}

print(f"全体员工当前信息如下:{employer_dict}")

# 升职
for employer in employer_dict:
    if int(employer_dict[employer]["级别"]) == 1:
        employer_dict[employer]["级别"] = employer_dict[employer]["级别"] + 1
        employer_dict[employer]["工资"] = employer_dict[employer]["工资"] + 1000
print(f"全体员工级别为1的员工完成升职加薪后的信息如下:{employer_dict}")


